<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;margin: 0;
        }
        img{
            width: 400px;
            height: 400px;
            display: block;
            border-radius: 85px;
        }
        button{
            display: inline-block;
            text-align: center;

        }
        .start{
            width: 400px;
            height: 380px;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            text-align: center;
            /* display: none; */
        }
    </style>
</head>
<body>
    <div class="map"> 
    </div>
    <div class="start">
        <img src="./img/start.webp
        " alt="">
        <button>开始游戏</button>
        <button>退出游戏</button>
    </div>
<!-- ============================================== -->
    <script src="./food.js"></script>
    <script src="./snake.js"></script>
    <script src="./map.js"></script>
    <script src="./game.js"></script>
    <script>
        let game = new Game('.map',{})   
            
    </script>
</body>
</html>